import React from 'react';
import {Card, Table} from 'antd';

const TableCard = props => {
    const {title, columns, dataSource} = props;
    return (
        <Card title={title}>
            <Table columns={columns} dataSource={dataSource} />
        </Card>
    );
};

export default TableCard;
